package com.ruoyi.utli;

import org.springframework.stereotype.Component;

@Component
public class DrinksourceFormula {

    public  Double  monitoringCapability(Double MI,Double WE,Double VS) {
        //WM =0.7*MI+0.3*(WE+VS)/2
        Double WM=0.0;
        Double s=0.0;
        if(MI!=null&&MI>0){
            MI=0.7*MI;
        }
        if(WE!=null&&WE>0){
            s=0.3*(WE+VS)/2;
        }
        WM=MI+s;

        return  WM;
    }

}
